﻿using Geek.Server.Core.Actors;
using Geek.Server.Core.Net.Http;

namespace Server.Logic.WebServer
{
    [HttpMsgMapping(WebVerifyLoginTokenReq.RouteKey)]
    public class WebVerifyLoginTokenReqHandler : BaseHttpHandler<WebVerifyLoginTokenReq>
    {
        protected override async Task<HttpResponse> Execute(string ip, WebVerifyLoginTokenReq req)
        {
            var compAgent = await ActorMgr.GetCompAgent<WebServerCompAgent>();
            return await compAgent.RequestAuthLoginToken(req.AccountId, req.LoginToken);
        }
    }
}